GtkAccelLabel: add manual accel API
authorRyan Lortie <desrt@desrt.ca>
Mon, 10 Sep 2012 18:36:23 +0000 (14:36 -0400)
committerRyan Lortie <desrt@desrt.ca>
Mon, 17 Sep 2012 16:31:22 +0000 (12:31 -0400)
commit778aa7ade0107fa645ab1427132551d138c7334a
treeecb61096cd6d72d7dc4f4362f8158d2f3c9bcdf8
parent338b5f6c2dc6cdb73ec3dfb6973b2269d4664b80
GtkAccelLabel: add manual accel API

Add an API to GtkAccelLabel for hardcoding the accel key to be displayed
(ie: allowing us to bypass the GtkAccelGroup lookup).

Use that from the GMenuModel-based GtkMenu construction code instead of
passing around the accel group.

This makes accel labels work in bloatpad again.

This patch effectively removes any hope of automatic runtime accel
changes in GMenuModel-based menus without additional application
support but it leaves the door open for this to be supported again in
the future (if we decide that it's important).

https://bugzilla.gnome.org/show_bug.cgi?id=683738
gtk/gtk.symbols
gtk/gtkaccellabel.c
gtk/gtkaccellabel.h
gtk/gtkapplicationwindow.c
gtk/gtkmodelmenu.c
gtk/gtkmodelmenu.h
gtk/gtkmodelmenuitem.c
gtk/gtkmodelmenuitem.h